<?php
/**
 * Created by PhpStorm.
 * User: 1
 * Date: 2020-02-17
 * Time: 15:36
 */

namespace App\Http\Request\System\Log;


use App\Common\Utils\BaseRequest;

class ListRequest extends BaseRequest
{

    public function rules() {
        $rules = [
            'page' => 'required|integer|min:1',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'page.required' => 'page不能为空',
            'page.integer' => 'page为整数',
            'page.min' => 'page必须大于0',
        ];

        return $messages;
    }
}